import { ref } from 'vue'
import { ItemType } from "@/components/types/types"


const bill = ref<ItemType[]>([
  {
    label: '标题',
    model: 'title',
    placeholder: '请输入',
    required: true,
    disabled: false,
    message: '请输入标题',
    type: 'input'
  },
  {
    label: '副标题',
    model: 'subhead',
    placeholder: '请输入',
    required: true,
    disabled: false,
    message: '请输入标题',
    type: 'input'
  },
  {
    label: '作者',
    model: 'author',
    placeholder: '请输入',
    message: '请输入作者',
    required: true,
    disabled: false,
    type: 'input'
  },
  {
    label: '发表时间：',
    model: 'publicTime',
    required: true,
    placeholder: '选择时间',
    type: 'beginTime',
    timeType: 'datetime',
    message: '请选择发表时间',
    setTime: 'setTime',
  },
  {
    label: '分类',
    model: 'type',
    placeholder: '请选择',
    dict: 'article_ma_type',
    type: 'select',
    required: true,
    disabled: false,
    message: '请选择分类',
    selectData: []
  },
  {
    label: '序号',
    model: 'seq',
    required: true,
    disabled: false,
    placeholder: '请输入',
    message: '请输入序号',
    type: 'input',
  },
  {
    label: '状态',
    model: 'status',
    dict: 'article_ma_status',
    placeholder: '请选择',
    type: 'select',
    required: false,
    disabled: true,
    message: '请选择状态',
    selectData: []
  },
])
interface Parmes {
  // status?: number;
  // billingStatus?: number;
  accountTime?: any;
  setTime?: any,
  intro?: any,
  [prop:string]: any
}
const datas = ref<Parmes>({

})
export default { bill, datas }